﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SupportWebsite.Models;

namespace SupportWebsite.Controllers
{
    public class MemberController : Controller
    {
        //
        // GET: /Member/
        public ActionResult Index()
        {   
            return View("ViewMembers");
        }

        public ActionResult AddMember(MemberModel member)
        {
            if (!ModelState.IsValid)
            {
                return View("AddMember", member);
            }
            else
            {
                /*supportDBEntities1 NewEntity = new supportDBEntities1();
                NewEntity.AddToMembers(member);
                NewEntity.SaveChanges();*/
                return View("../Thanks");
            }
        }

        public ActionResult EditMember()
        {
            return View();
        }

        public ActionResult DeleteMember()
        {
            return View();
        }

        public ActionResult ViewMember()
        {
            return View();
        }

    }
}
